<template>
  <view class="content">
    <wx-form-id :getFormId="saveFormId" btnName="提交"></wx-form-id>
  </view>
</template>

<script>
  import wxFormId from '@/components/wxFromId.vue';
  import api from '@/common/api.js'
  import enums from '@/common/sysEnum.js';
  import publicMethod from '@/common/publicMethod.js'
  export default {
    components: {
      wxFormId
    },
    data() {
      return {
      };
    },
    methods: {
      // 保存fromId
      saveFormId: function (e) {
        let that = this;
        that.commonSaveFormId(e);
      },
      // 发送服务通知
      sendNotice() {
        console.log('发送方法')
        let that = this;
        console.log('发送参数：' + JSON.stringify(that.submitData))
        api.httpRequest('/wechat/sendwxMsg', that.submitData, enums.enums.REQUEST_METHOD.POST).then(
            res => {
              console.log(JSON.stringify(res));
            })
      }
    }
  }
</script>

<style>
  .content {
    text-align: center;
    height: 400 upx;
  }

</style>
